package com.aiti.lulian.flow.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

/**
 * description:
 * auth fcb
 * date 2025-09-04 09:41
 **/
@ApiModel(value = "流程实例表",description = "")
@TableName("card_flow_instance")
@Data
public class CardFlowInstance {

    /** 主键 */
    @ApiModelProperty(name = "主键",notes = "")
    @TableId(value = "base_id",type = IdType.INPUT)
    private String baseId ;

    /** 流程定义id */
    @ApiModelProperty(name = "流程定义id",notes = "")
    @TableField(value = "flow_definition_id")
    private String flowDefinitionId ;

    /** 业务数据id */
    @ApiModelProperty(name = "业务数据id",notes = "")
    @TableField(value = "business_id")
    private String businessId ;

    /** 流程开始时间 */
    @ApiModelProperty(name = "流程开始时间",notes = "")
    @TableField(value = "start_time")
    private Date startTime ;

    /** 流程结束时间 */
    @ApiModelProperty(name = "流程结束时间",notes = "")
    @TableField(value = "end_time")
    private Date endTime ;

    /** 流程发起人id */
    @ApiModelProperty(name = "流程发起人id",notes = "")
    @TableField(value = "start_user_id")
    private String startUserId ;

    /** 当前所处在的节点key */
    @ApiModelProperty(name = "当前所处在的节点key",notes = "")
    @TableField(value = "current_node_key")
    private String currentNodeKey ;

    /** 当前流程实例状态。0：已发起待审核，1：审核中，2：已完成，3：驳回 */
    @ApiModelProperty(name = "当前流程实例状态。0：已发起待审核，1：审核中，2：已完成，3：驳回",notes = "")
    @TableField(value = "process_status")
    private Integer processStatus ;
}
